﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NhanAi.DAO;
namespace NhanAi.Admin
{
    public partial class Dashboard : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Authenticate();
            UserDao daoUser = new UserDao();
            PostDao daoPost = new PostDao();
            CommentDao daoComment = new CommentDao();
            lblCommentCount.Text = daoComment.Count(true).ToString();
            lblPostCount.Text = daoPost.Count().ToString();
            lblUserCount.Text = daoUser.Count().ToString();
            SetCurrentPage("HomeAdmin");
        }
    }
}